package com.itheima.mapper;

import com.itheima.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeptMapper {
    @Select("select * from  dept order by update_time desc ")
    List<Dept> list();

     void add(Dept dept);

    void deleteById(Integer id);

    void update(Dept dept);

    Dept GetById(Integer id);
}
